package oop.java0329.work1;

/**
 * 客机添加 载客数的属性
 */
public class Airplane extends Plane {
    private int seat;

    public Airplane(int seat) {
        this.seat = seat;
    }

    public Airplane(double weight, double height, int seat) {
        super(weight, height);
        this.seat = seat;
    }

    public int getSeat() {
        return seat;
    }

    public void setSeat(int seat) {
        this.seat = seat;
    }

    @Override
    public void showInfo() {
        super.showInfo();
        System.out.println("载客数：" + seat);
    }
}
